// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fowo.api.common.model.PageSearch;
import com.fowo.api.portal.entity.Desktop;
import com.fowo.api.portal.model.DesktopAddUpdateVo;
import com.fowo.api.portal.model.DesktopSearchParamPo;
import com.fowo.api.portal.model.DesktopVo;
import org.springframework.transaction.annotation.Transactional;

/**
 * 门户表 服务类
 */
public interface DesktopService extends IService<Desktop> {

  Page<Desktop> pageSearch(DesktopSearchParamPo search);

  DesktopVo getVoById(Long id);

  Long create(DesktopAddUpdateVo vo) throws  Exception;

  Boolean updateEdit(DesktopAddUpdateVo vo) throws Exception;

  @Transactional(rollbackFor = Exception.class)
  Boolean publishScheme(DesktopAddUpdateVo vo) throws Exception;

  Boolean delete(Long id) throws Exception;

  Boolean CopyDeskTop(Long id) throws Exception;

  Boolean switchVersion(Long id) throws Exception;

  Page<Desktop> getHistoryPage(Long id, PageSearch pageSearch);

  String previewDeskSchemeJson(Long id);
}
